package com.cauli.file.model.dto.file;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Cauli
 * @date 2023-03-18 12:00
 * @description 预览文件DTO
 */
@Data
@ApiModel(value = "PreviewDTO", description = "预览文件DTO")
public class PreviewDTO {
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("文件大小")
    private Long userFileId;

    @ApiModelProperty("批次号")
    private String shareBatchNum;

    @ApiModelProperty("提取码")
    private String extractionCode;

    @ApiModelProperty("是否为缩略图")
    private String isMin;

    @ApiModelProperty("平台")
    private Integer platform;

    @ApiModelProperty("文件URL")
    private String url;

    @ApiModelProperty("token")
    private String token;
}
